package com.castle.fortress.admin.study.course.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.castle.fortress.admin.study.course.entity.StudyCourseChapterCoursewareEntity;
import com.castle.fortress.admin.study.course.dto.StudyCourseChapterCoursewareDto;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.Map;
import java.util.List;

/**
 * 章节课件表 服务类
 *
 * @author castle
 * @since 2023-01-31
 */
public interface StudyCourseChapterCoursewareService extends IService<StudyCourseChapterCoursewareEntity> {

    /**
     * 分页展示章节课件表列表
     * @param page
     * @param studyCourseChapterCoursewareDto
     * @return
     */
    IPage<StudyCourseChapterCoursewareDto> pageStudyCourseChapterCourseware(Page<StudyCourseChapterCoursewareDto> page, StudyCourseChapterCoursewareDto studyCourseChapterCoursewareDto);

    /**
    * 分页展示章节课件表扩展列表
    * @param page
    * @param studyCourseChapterCoursewareDto
    * @return
    */
    IPage<StudyCourseChapterCoursewareDto> pageStudyCourseChapterCoursewareExtends(Page<StudyCourseChapterCoursewareDto> page, StudyCourseChapterCoursewareDto studyCourseChapterCoursewareDto);
    /**
    * 章节课件表扩展详情
    * @param id 章节课件表id
    * @return
    */
    StudyCourseChapterCoursewareDto getByIdExtends(Long id);

    /**
     * 展示章节课件表列表
     * @param studyCourseChapterCoursewareDto
     * @return
     */
    List<StudyCourseChapterCoursewareDto> listStudyCourseChapterCourseware(StudyCourseChapterCoursewareDto studyCourseChapterCoursewareDto);

    /**
     * 删除课程绑定的课件
     * @param courseId
     */
    void delByCourseId(Long courseId);

    void delByCourseIds(List<Long> courseIds);

    /**
     * 删除绑定指定课件数据
     * @param id
     */
    void delByCoursewareId(Long id);


    void delByCoursewareIds(List<Long> ids);

    List<StudyCourseChapterCoursewareEntity> findByCoursewareId(Long id);

    List<StudyCourseChapterCoursewareEntity> findByCoursewareIds(List<Long> ids);
}
